FROM node
RUN cd /home
RUN apt install git
RUN git clone https://gitee.com/yxhao/inyaa-sakura.git
RUN cd inyaa-sakura
WORKDIR /home/inyaa-sakura
VOLUME ["/data/nginx/node_modules:/home/inyaa-sakura/node_modules"]
RUN npm cache clean --force
RUN npm config set registry http://mirrors.cloud.tencent.com/npm/
RUN npm install
CMD ["node", "./server.js"]

